<template>
  <div>
    <el-breadcrumb separator=">">
      <!-- <el-breadcrumb-item :to="{ path: '/index' }"></el-breadcrumb-item> -->
      <el-breadcrumb-item
        v-for="(item, index) in $route.meta"
        :key="index"
        :to="{ name: item }"
        >{{ item }}</el-breadcrumb-item
      >
    </el-breadcrumb>
    <el-divider></el-divider>
  </div>
</template>

<script>
export default {
  name: "Breadcrumb"
};
</script>

<style lang="scss" scoped>
.el-breadcrumb {
  margin-left: 20px;
  margin-top: 10px;
}
.el-divider {
  margin: 10px 0 0 0;
  padding: 0;
}
</style>
